package com.webshop.JavaBean;

/**
 * CREATE TABLE `detail_order`  (
 `ID` int(20) NOT NULL AUTO_INCREMENT,
 `orderID` int(20) NOT NULL,
 `goodsName` int(20) NOT NULL,
 `goodsAttribute` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `onlyPrice` decimal(20, 2) NOT NULL,
 `goodsNum` int(20) NOT NULL,
 `sumPrice` decimal(20, 2) NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
 */
public class Detail_order {
    int ID;
    String orderID;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    String goodsName;
    String goodsAttribute;
    String picpath;


    public String getPicpath() {
        return picpath;
    }

    public void setPicpath(String picpath) {
        this.picpath = picpath;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getOrderID() {
        return orderID;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }


    public String getGoodsAttribute() {
        return goodsAttribute;
    }

    public void setGoodsAttribute(String goodsAttribute) {
        this.goodsAttribute = goodsAttribute;
    }

    public double getOnlyPrice() {
        return onlyPrice;
    }

    public void setOnlyPrice(double onlyPrice) {
        this.onlyPrice = onlyPrice;
    }

    public int getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }

    public double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(double sumPrice) {
        this.sumPrice = sumPrice;
    }

    double onlyPrice;
    int goodsNum;
    double sumPrice;
    int goodsID;

    public int getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }

    public Detail_order() {

    }


    public Detail_order(String orderID, String goodsName, String goodsAttribute, String picpath, double onlyPrice, int goodsNum, double sumPrice) {
        this.orderID = orderID;
        this.goodsName = goodsName;
        this.goodsAttribute = goodsAttribute;
        this.picpath = picpath;
        this.onlyPrice = onlyPrice;
        this.goodsNum = goodsNum;
        this.sumPrice = sumPrice;
    }

    @Override
    public String toString() {
        return "Detail_order{" +
                "orderID='" + orderID + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsAttribute='" + goodsAttribute + '\'' +
                ", picpath='" + picpath + '\'' +
                ", onlyPrice=" + onlyPrice +
                ", goodsNum=" + goodsNum +
                ", sumPrice=" + sumPrice +
                ", goodsID=" + goodsID +
                '}';
    }
}
